import request from '@/utils/request'

// 查询门店管理列表
export function listCmsShops(query) {
  return request({
    url: '/cms/cmsShops/list',
    method: 'get',
    params: query
  })
}

// 查询门店管理详细
export function getCmsShops(id) {
  return request({
    url: '/cms/cmsShops/' + id,
    method: 'get'
  })
}

// 新增门店管理
export function addCmsShops(data) {
  return request({
    url: '/cms/cmsShops',
    method: 'post',
    data: data
  })
}

// 修改门店管理
export function updateCmsShops(data) {
  return request({
    url: '/cms/cmsShops',
    method: 'put',
    data: data
  })
}

// 删除门店管理
export function delCmsShops(id) {
  return request({
    url: '/cms/cmsShops/' + id,
    method: 'delete'
  })
}

// 导出门店管理
export function exportCmsShops(query) {
  return request({
    url: '/cms/cmsShops/export',
    method: 'get',
    params: query
  })
}